package com.note.app.dto.collaboration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 协作参与者DTO
 */
@Data
@Schema(description = "协作参与者信息")
public class CollaborationParticipantDTO {
    
    @Schema(description = "记录ID")
    private Long id;
    
    @Schema(description = "会话ID")
    private Long sessionId;
    
    @Schema(description = "用户ID")
    private Long userId;
    
    @Schema(description = "用户名称")
    private String username;
    
    @Schema(description = "用户头像")
    private String avatar;
    
    @Schema(description = "角色: 0-查看者, 1-编辑者, 2-管理员")
    private Integer role;
    
    @Schema(description = "用户颜色", example = "#FF5733")
    private String color;
    
    @Schema(description = "是否在线: 0-离线, 1-在线")
    private Integer isOnline;
    
    @Schema(description = "光标位置", example = "{\"index\":10,\"row\":5,\"column\":8}")
    private String cursorPosition;
    
    @Schema(description = "最后活跃时间")
    private LocalDateTime lastActiveTime;
    
    @Schema(description = "加入时间")
    private LocalDateTime joinedAt;
} 